<div class="paylog">

<h3><{"Edit Balance"|msg}></h3>

<{if count($paylog.errors) > 0}>
<div class="errors">
<ul>
<{foreach from=$paylog.errors item="error"}>
<li><{$error}></li>
<{/foreach}>
</ul>
</div>
<{/if}>

<form action="#" method="post" class="paylog_edit_balance">

<h4><{"Date"|msg}></h4>
<div><input type="text" name="date" value="<{$paylog.input.date}>" /></div>

<h4><{"Item"|msg}></h4>
<div><input type="text" name="name" value="<{$paylog.input.name}>" /></div>

<h4><{"Price"|msg}></h4>
<div><input type="text" name="price" value="<{$paylog.input.price}>" /></div>

<h4><{"Flow"|msg}></h4>
<select name="flow">
<{foreach from=$paylog.flow_options item="option"}>
<option value="<{$option.value}>"<{if $paylog.input.flow == $option.value}> selected="selected"<{/if}>><{$option.name}></option>
<{/foreach}>
</select>

<{foreach from=$paylog.groups item="group"}>
<h4><{$group.name}></h4>
<select name="tags[<{$group.id}>]">
<{foreach from=$group.tags item="tag"}>
<option value="<{$tag.id}>"<{if $paylog.input.tags[$group.id] == $tag.id}> selected="selected"<{/if}>><{$tag.name}></option>
<{/foreach}>
</select>
<{/foreach}>

<div class="paylog_submit">
<input type="submit" name="save" value="<{"Submit"|msg}>" class="button icon ok" />
</div>
<input type="hidden" name="token" value="<{$paylog.token}>" />
</form>

</div>